package d0320;


import java.util.Scanner;

public class paixu2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入10个数字");
        int[] a=new int[10];
        for(int i=0;i<=9;i++){
            a[i]=scanner.nextInt();
        }
        int max=0;
        int t=0;
        for(int k=0;k<=9;k++)
        {
            max=a[k];
            for(int l=0;l<=9;l++)
            {
                if(max>a[l])
                {
                    max=a[k];
                    a[k]=a[l];
                    a[l]=max;
                }
            }
        }
        for (int o=9;o>=0;o--)
        {
            System.out.println(a[o]);
        }
    }
}
